# plate_consumer/src/config.py
import os


class ConsumerConfig:
    # 数据库配置
    DB_URI = os.getenv("DB_URI", "mysql+pymysql://root:123456@localhost/plate_detection")
    DB_POOL_SIZE = int(os.getenv("DB_POOL_SIZE", 5))

    # Redis配置
    REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
    REDIS_PORT = int(os.getenv("REDIS_PORT", 6379))
    REDIS_DB = int(os.getenv("REDIS_DB", 0))
    REDIS_STREAMS = {
        'DB_OPS': 'db_operations_stream',
        'DEAD_LETTER': 'db_dead_letter_stream'
    }
